﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HST.ZWParking.Infrastructure.Data.EntityFramework;
using HST.ZWParking.Infrastructure.Data.EntityFramework.Repositories;
using HST.ZWParking.Domain.Entities;
using HST.ZWParking.Application.Service.Implementation;

namespace HST.ZWParking.App
{
    class Program
    {
        static void Main(string[] args)
        {
            //ZWParkingContext db = new ZWParkingContext();
            //List<Province> provinceList = db.Provinces.ToList<Province>();

            List<Province> provinceList = new ProvinceService(new ProvinceRepository(new DatabaseFactory())).GetAll().ToList();
            foreach (Province p in provinceList)
            {
                Console.WriteLine("{0}-{1}-{2}", p.ID, p.ProvinceNo, p.ProvinceName);
            }
        }
    }
}
